
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>从虚拟地址到物理地址 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    
    <link rel="stylesheet" href="../../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-katex/katex.min.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-codeblock-label/block.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-click-reveal/click_reveal.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="part-2.html" />
    
    
    <link rel="prev" href="intro.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../../">
            
                <a href="../../../">
            
                    
                    实验简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../../notes/log.html">
            
                <a href="../../../notes/log.html">
            
                    
                    更新日志
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">实验之前</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../../pre-lab/env.html">
            
                <a href="../../pre-lab/env.html">
            
                    
                    环境部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../../pre-lab/gdb.html">
            
                <a href="../../pre-lab/gdb.html">
            
                    
                    GDB 调试方法*
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">实验指导</li>
        
        
    
        <li class="chapter " data-level="3.1" >
            
                <span>
            
                    
                    实验指导零
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1.1" data-path="../../lab-0/guide/intro.html">
            
                <a href="../../lab-0/guide/intro.html">
            
                    
                    摘要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.2" data-path="../../lab-0/guide/part-1.html">
            
                <a href="../../lab-0/guide/part-1.html">
            
                    
                    创建项目
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.3" data-path="../../lab-0/guide/part-2.html">
            
                <a href="../../lab-0/guide/part-2.html">
            
                    
                    移除标准库依赖
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.4" data-path="../../lab-0/guide/part-3.html">
            
                <a href="../../lab-0/guide/part-3.html">
            
                    
                    移除运行时环境依赖
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.5" data-path="../../lab-0/guide/part-4.html">
            
                <a href="../../lab-0/guide/part-4.html">
            
                    
                    编译为裸机目标
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.6" data-path="../../lab-0/guide/part-5.html">
            
                <a href="../../lab-0/guide/part-5.html">
            
                    
                    生成内核镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.7" data-path="../../lab-0/guide/part-6.html">
            
                <a href="../../lab-0/guide/part-6.html">
            
                    
                    调整内存布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.8" data-path="../../lab-0/guide/part-7.html">
            
                <a href="../../lab-0/guide/part-7.html">
            
                    
                    重写程序入口点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.9" data-path="../../lab-0/guide/part-8.html">
            
                <a href="../../lab-0/guide/part-8.html">
            
                    
                    使用 QEMU 运行
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.10" data-path="../../lab-0/guide/part-9.html">
            
                <a href="../../lab-0/guide/part-9.html">
            
                    
                    接口封装和代码整理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.1.11" data-path="../../lab-0/guide/summary.html">
            
                <a href="../../lab-0/guide/summary.html">
            
                    
                    小结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.2" >
            
                <span>
            
                    
                    实验指导一
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.2.1" data-path="../../lab-1/guide/intro.html">
            
                <a href="../../lab-1/guide/intro.html">
            
                    
                    摘要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.2" data-path="../../lab-1/guide/part-1.html">
            
                <a href="../../lab-1/guide/part-1.html">
            
                    
                    什么是中断
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.3" data-path="../../lab-1/guide/part-2.html">
            
                <a href="../../lab-1/guide/part-2.html">
            
                    
                    RISC-V 中的中断
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.4" data-path="../../lab-1/guide/part-3.html">
            
                <a href="../../lab-1/guide/part-3.html">
            
                    
                    程序运行状态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.5" data-path="../../lab-1/guide/part-4.html">
            
                <a href="../../lab-1/guide/part-4.html">
            
                    
                    状态的保存与恢复
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.6" data-path="../../lab-1/guide/part-5.html">
            
                <a href="../../lab-1/guide/part-5.html">
            
                    
                    进入中断处理流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.7" data-path="../../lab-1/guide/part-6.html">
            
                <a href="../../lab-1/guide/part-6.html">
            
                    
                    时钟中断
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2.8" data-path="../../lab-1/guide/summary.html">
            
                <a href="../../lab-1/guide/summary.html">
            
                    
                    小结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.3" >
            
                <span>
            
                    
                    实验指导二
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.3.1" data-path="../../lab-2/guide/intro.html">
            
                <a href="../../lab-2/guide/intro.html">
            
                    
                    摘要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3.2" data-path="../../lab-2/guide/part-1.html">
            
                <a href="../../lab-2/guide/part-1.html">
            
                    
                    动态内存分配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3.3" data-path="../../lab-2/guide/part-2.html">
            
                <a href="../../lab-2/guide/part-2.html">
            
                    
                    物理内存探测
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3.4" data-path="../../lab-2/guide/part-3.html">
            
                <a href="../../lab-2/guide/part-3.html">
            
                    
                    物理内存管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3.5" data-path="../../lab-2/guide/summary.html">
            
                <a href="../../lab-2/guide/summary.html">
            
                    
                    小结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.4" >
            
                <span>
            
                    
                    实验指导三
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.4.1" data-path="intro.html">
            
                <a href="intro.html">
            
                    
                    摘要
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="3.4.2" data-path="part-1.html">
            
                <a href="part-1.html">
            
                    
                    从虚拟地址到物理地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4.3" data-path="part-2.html">
            
                <a href="part-2.html">
            
                    
                    修改内核
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4.4" data-path="part-3.html">
            
                <a href="part-3.html">
            
                    
                    实现页表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4.5" data-path="part-4.html">
            
                <a href="part-4.html">
            
                    
                    实现内核重映射
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4.6" data-path="part-5.html">
            
                <a href="part-5.html">
            
                    
                    页面置换*
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4.7" data-path="summary.html">
            
                <a href="summary.html">
            
                    
                    小结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.5" >
            
                <span>
            
                    
                    实验指导四
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.5.1" data-path="../../lab-4/guide/intro.html">
            
                <a href="../../lab-4/guide/intro.html">
            
                    
                    摘要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5.2" data-path="../../lab-4/guide/part-1.html">
            
                <a href="../../lab-4/guide/part-1.html">
            
                    
                    线程和进程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5.3" data-path="../../lab-4/guide/part-2.html">
            
                <a href="../../lab-4/guide/part-2.html">
            
                    
                    线程的创建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5.4" data-path="../../lab-4/guide/part-3.html">
            
                <a href="../../lab-4/guide/part-3.html">
            
                    
                    线程的切换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5.5" data-path="../../lab-4/guide/part-4.html">
            
                <a href="../../lab-4/guide/part-4.html">
            
                    
                    线程的结束
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5.6" data-path="../../lab-4/guide/part-5.html">
            
                <a href="../../lab-4/guide/part-5.html">
            
                    
                    内核栈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5.7" data-path="../../lab-4/guide/part-6.html">
            
                <a href="../../lab-4/guide/part-6.html">
            
                    
                    线程调度
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5.8" data-path="../../lab-4/guide/summary.html">
            
                <a href="../../lab-4/guide/summary.html">
            
                    
                    小结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.6" >
            
                <span>
            
                    
                    实验指导五
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.6.1" data-path="../../lab-5/guide/intro.html">
            
                <a href="../../lab-5/guide/intro.html">
            
                    
                    摘要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6.2" data-path="../../lab-5/guide/part-1.html">
            
                <a href="../../lab-5/guide/part-1.html">
            
                    
                    设备树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6.3" data-path="../../lab-5/guide/part-2.html">
            
                <a href="../../lab-5/guide/part-2.html">
            
                    
                    virtio
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6.4" data-path="../../lab-5/guide/part-3.html">
            
                <a href="../../lab-5/guide/part-3.html">
            
                    
                    驱动和块设备驱动
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6.5" data-path="../../lab-5/guide/part-4.html">
            
                <a href="../../lab-5/guide/part-4.html">
            
                    
                    文件系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6.6" data-path="../../lab-5/guide/summary.html">
            
                <a href="../../lab-5/guide/summary.html">
            
                    
                    小结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3.7" >
            
                <span>
            
                    
                    实验指导六
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.7.1" data-path="../../lab-6/guide/intro.html">
            
                <a href="../../lab-6/guide/intro.html">
            
                    
                    摘要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7.2" data-path="../../lab-6/guide/part-1.html">
            
                <a href="../../lab-6/guide/part-1.html">
            
                    
                    构建用户程序框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7.3" data-path="../../lab-6/guide/part-2.html">
            
                <a href="../../lab-6/guide/part-2.html">
            
                    
                    打包为磁盘镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7.4" data-path="../../lab-6/guide/part-3.html">
            
                <a href="../../lab-6/guide/part-3.html">
            
                    
                    解析 ELF 文件并创建线程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7.5" data-path="../../lab-6/guide/part-4.html">
            
                <a href="../../lab-6/guide/part-4.html">
            
                    
                    实现系统调用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7.6" data-path="../../lab-6/guide/part-5.html">
            
                <a href="../../lab-6/guide/part-5.html">
            
                    
                    处理文件描述符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7.7" data-path="../../lab-6/guide/part-6.html">
            
                <a href="../../lab-6/guide/part-6.html">
            
                    
                    条件变量
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7.8" data-path="../../lab-6/guide/summary.html">
            
                <a href="../../lab-6/guide/summary.html">
            
                    
                    小结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">实验题</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../../lab-1/practice.html">
            
                <a href="../../lab-1/practice.html">
            
                    
                    实验一：中断
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../../lab-2/practice.html">
            
                <a href="../../lab-2/practice.html">
            
                    
                    实验二：内存分配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../practice.html">
            
                <a href="../practice.html">
            
                    
                    实验三：虚实地址转换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="../../lab-4/practice-1.html">
            
                <a href="../../lab-4/practice-1.html">
            
                    
                    实验四（上）：线程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="../../lab-4/practice-2.html">
            
                <a href="../../lab-4/practice-2.html">
            
                    
                    实验四（下）：线程调度
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6" data-path="../../lab-6/practice.html">
            
                <a href="../../lab-6/practice.html">
            
                    
                    实验六：系统调用
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">开发笔记</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../../format/partition.html">
            
                <a href="../../format/partition.html">
            
                    
                    文档代码划分
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../../format/doc.html">
            
                <a href="../../format/doc.html">
            
                    
                    文档格式规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="../../format/code.html">
            
                <a href="../../format/code.html">
            
                    
                    代码格式规范
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../.." >从虚拟地址到物理地址</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x4ECE;&#x865A;&#x62DF;&#x5185;&#x5B58;&#x5230;&#x7269;&#x7406;&#x5185;&#x5B58;">&#x4ECE;&#x865A;&#x62DF;&#x5185;&#x5B58;&#x5230;&#x7269;&#x7406;&#x5185;&#x5B58;</h2>
<h3 id="&#x865A;&#x62DF;&#x5730;&#x5740;&#x548C;&#x7269;&#x7406;&#x5730;&#x5740;">&#x865A;&#x62DF;&#x5730;&#x5740;&#x548C;&#x7269;&#x7406;&#x5730;&#x5740;</h3>
<p>&#x5230;&#x76EE;&#x524D;&#x4E3A;&#x6B62;&#xFF0C;&#x6211;&#x4EEC;&#x7B80;&#x6613;&#x7684;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x8FD8;&#x53EA;&#x662F;&#x4E00;&#x4E2A;&#x5185;&#x6838;&#x5728;&#x6267;&#x884C;&#xFF0C;&#x8FD8;&#x6CA1;&#x6709;&#x591A;&#x4EFB;&#x52A1;&#x7684;&#x6982;&#x5FF5;&#x3002;&#x5728;&#x73B0;&#x4EE3;&#x7684;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x4E2D;&#xFF0C;&#x4E3A;&#x4E86;&#x8BA9;&#x5176;&#x4ED6;&#x7684;&#x7A0B;&#x5E8F;&#x80FD;&#x65B9;&#x4FBF;&#x7684;&#x8FD0;&#x884C;&#x5728;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x4E0A;&#xFF0C;&#x9700;&#x8981;&#x5B8C;&#x6210;&#x7684;&#x4E00;&#x4E2A;&#x5F88;&#x91CD;&#x8981;&#x7684;&#x62BD;&#x8C61;&#x662F;&#x300C;&#x6BCF;&#x4E2A;&#x7A0B;&#x5E8F;&#x6709;&#x81EA;&#x5DF1;&#x7684;&#x5730;&#x5740;&#x7A7A;&#x95F4;&#xFF0C;&#x4E14;&#x5730;&#x5740;&#x7A7A;&#x95F4;&#x8303;&#x56F4;&#x662F;&#x4E00;&#x6837;&#x7684;&#x300D;&#xFF0C;&#x8FD9;&#x5C06;&#x4F1A;&#x51CF;&#x5C11;&#x4E86;&#x4E0A;&#x5C42;&#x7A0B;&#x5E8F;&#x7684;&#x5927;&#x91CF;&#x9EBB;&#x70E6;&#xFF0C;&#x5426;&#x5219;&#x7A0B;&#x5E8F;&#x672C;&#x8EAB;&#x8981;&#x7EF4;&#x62A4;&#x81EA;&#x5DF1;&#x9700;&#x8981;&#x7684;&#x7269;&#x7406;&#x5185;&#x5B58;&#xFF0C;&#x8FD9;&#x4E5F;&#x4F1A;&#x5BFC;&#x81F4;&#x6781;&#x5927;&#x7A0B;&#x5EA6;&#x7684;&#x4E0D;&#x5B89;&#x5168;&#x3002;</p>
<p>&#x8FD9;&#x4E2A;&#x6267;&#x884C;&#x4E0A;&#x770B;&#x5230;&#x7684;&#x5730;&#x5740;&#x7A7A;&#x95F4;&#xFF0C;&#x5C31;&#x662F;&#x865A;&#x62DF;&#x5185;&#x5B58;&#x3002;&#x800C;&#x8BBF;&#x95EE;&#x865A;&#x62DF;&#x5185;&#x5B58;&#x7684;&#x5730;&#x5740;&#x5C31;&#x662F;<strong>&#x865A;&#x62DF;&#x5730;&#x5740;&#xFF08;Virtual Address&#xFF09;</strong>&#xFF0C;&#x4E0E;&#x4E4B;&#x5BF9;&#x5E94;&#x7684;&#x662F;<strong>&#x7269;&#x7406;&#x5730;&#x5740;&#xFF08;Physical Address&#xFF09;</strong>&#x3002;&#x8FD9;&#x6837;&#x7684;&#x8BBE;&#x8BA1;&#x4F1A;&#x5BFC;&#x81F4;&#x4E0A;&#x5C42;&#x7684;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;&#x53EF;&#x80FD;&#x4F1A;&#x8BBF;&#x95EE;&#x540C;&#x4E00;&#x4E2A;&#x503C;&#x76F8;&#x7B49;&#x7684;&#x865A;&#x62DF;&#x5730;&#x5740;&#xFF0C;&#x6240;&#x4EE5;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x9700;&#x8981;&#x505A;&#x7684;&#x5C31;&#x662F;&#x66FF;&#x8FD9;&#x4E9B;&#x7A0B;&#x5E8F;&#x7EF4;&#x62A4;&#x8FD9;&#x4E2A;&#x865A;&#x62DF;&#x5730;&#x5740;&#x5230;&#x7269;&#x7406;&#x5730;&#x5740;&#x7684;&#x6620;&#x5C04;&#x3002;&#x751A;&#x8005;&#xFF0C;&#x4E3A;&#x4E86;&#x7EDF;&#x4E00;&#x548C;&#x8FDE;&#x8D2F;&#xFF0C;&#x5185;&#x6838;&#x81EA;&#x5DF1;&#x672C;&#x8EAB;&#x8BBF;&#x95EE;&#x5185;&#x5B58;&#x4E5F;&#x5C06;&#x4F1A;&#x901A;&#x8FC7;&#x865A;&#x62DF;&#x5730;&#x5740;&#x3002;</p>
<p>&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x8BF4;&#x8FD9;&#x4E2A;&#x6620;&#x5C04;&#x7684;<strong>&#x7EF4;&#x62A4;</strong>&#x662F;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x5728;&#x505A;&#xFF0C;&#x4F46;&#x662F;&#x5927;&#x91CF;&#x9891;&#x7E41;&#x7684;&#x8BBF;&#x5B58;&#x4E0D;&#x53EF;&#x80FD;&#x5168;&#x90E8;&#x901A;&#x8FC7;&#x8C03;&#x7528;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x7684;&#x63A5;&#x53E3;&#x6765;&#x83B7;&#x53D6;&#x771F;&#x5B9E;&#x7684;&#x7269;&#x7406;&#x5730;&#x5740;&#x3002;&#x6240;&#x4EE5;&#xFF0C;&#x8FD9;&#x91CC;&#x786C;&#x4EF6;&#x4E5F;&#x4F1A;&#x53C2;&#x4E0E;&#xFF0C;&#x5E2E;&#x6211;&#x4EEC;&#x5FEB;&#x901F;<strong>&#x67E5;&#x8BE2;</strong>&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x7EF4;&#x62A4;&#x7684;&#x6620;&#x5C04;&#xFF0C;&#x800C;&#x8FD9;&#x4E2A;&#x673A;&#x5236;&#x5C31;&#x662F;&#x9875;&#x8868;&#x3002;</p>
<p><img src="../pics/rcore_memory_layout.png" alt=""></p>
<p>&#x5982;&#x4E0A;&#x56FE;&#x6240;&#x793A;&#xFF0C;&#x8FD9;&#x91CC;&#x7684;&#x56FE;&#x8868;&#x793A;&#x4E86;&#x975E;&#x6559;&#x5B66;&#x7248; rCore &#x7684;&#x865A;&#x62DF;&#x5730;&#x5740;&#x548C;&#x7269;&#x7406;&#x5730;&#x5740;&#x7684;&#x6620;&#x5C04;&#x5173;&#x7CFB;&#x3002;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x5185;&#x6838;&#x7684;&#x6570;&#x636E;&#x653E;&#x5728;&#x4E86;&#x4E00;&#x6BB5;&#x9AD8;&#x865A;&#x62DF;&#x5730;&#x5740;&#x7A7A;&#x95F4;&#xFF0C;&#x7136;&#x540E;&#x4F1A;&#x6620;&#x5C04;&#x5230; 0x80200000 &#x5F00;&#x59CB;&#x7684;&#x4E00;&#x6BB5;&#x4F4E;&#x7269;&#x7406;&#x5730;&#x5740;&#x7A7A;&#x95F4;&#xFF1B;&#x800C;&#x6240;&#x6709;&#x7684;&#x7528;&#x6237;&#x7A0B;&#x5E8F;&#xFF0C;&#x5C06;&#x901A;&#x8FC7;&#x64CD;&#x4F5C;&#x7CFB;&#x7EDF;&#x7EF4;&#x62A4;&#x7684;&#x9875;&#x8868;&#x6620;&#x5C04;&#x5230;&#x4E0D;&#x540C;&#x7684;&#x7269;&#x7406;&#x7A7A;&#x95F4;&#x3002;&#x5F53;&#x7136;&#xFF0C;&#x8FD9;&#x53EA;&#x662F;&#x975E;&#x6559;&#x5B66;&#x7248; rCore &#x7684;&#x8BBE;&#x8BA1;&#xFF0C;&#x5728;&#x672C;&#x6559;&#x7A0B;&#x4E2D; kernel layout &#x548C; user layout &#x4F1A;&#x548C;&#x56FE;&#x6709;&#x4E9B;&#x51FA;&#x5165;&#xFF0C;&#x5177;&#x4F53;&#x7EC6;&#x8282;&#x53EF;&#x4EE5;&#x7FFB;&#x770B; linker script&#x3002;</p>
<h3 id="sv39">Sv39</h3>
<p><img src="../pics/sv39_address.png" alt=""></p>
<p>&#x9875;&#x8868;&#x7684;&#x8BBE;&#x8BA1;&#x548C;&#x63A5;&#x53E3;&#x4F1A;&#x6709;&#x5F88;&#x591A;&#x79CD;&#xFF0C;&#x8FD9;&#x91CC;&#x6211;&#x4EEC;&#x9009;&#x62E9; RISC-V &#x672C;&#x8EAB;&#x786C;&#x4EF6;&#x652F;&#x6301;&#x7684; Sv39 &#x6A21;&#x5F0F;&#x4F5C;&#x4E3A;&#x9875;&#x8868;&#x7684;&#x5B9E;&#x73B0;&#x3002;</p>
<p>&#x5728; Sv39 &#x6A21;&#x5F0F;&#x4E2D;&#xFF0C;&#x5B9A;&#x4E49;&#x7269;&#x7406;&#x5730;&#x5740;&#x6709; 56 &#x4F4D;&#xFF0C;&#x800C;&#x865A;&#x62DF;&#x5730;&#x5740;&#x6709; 64 &#x4F4D;&#x3002;&#x867D;&#x7136;&#x865A;&#x62DF;&#x5730;&#x5740;&#x6709; 64 &#x4F4D;&#xFF0C;&#x53EA;&#x6709;&#x4F4E; 39 &#x4F4D;&#x6709;&#x6548;&#x3002;&#x4E0D;&#x8FC7;&#x8FD9;&#x4E0D;&#x662F;&#x8BF4;&#x9AD8; 25 &#x4F4D;&#x53EF;&#x4EE5;&#x968F;&#x610F;&#x53D6;&#x503C;&#xFF0C;&#x89C4;&#x5B9A; 63-39 &#x4F4D;&#x7684;&#x503C;&#x5FC5;&#x987B;&#x7B49;&#x4E8E;&#x7B2C; 38 &#x4F4D;&#x7684;&#x503C;&#xFF0C;&#x5426;&#x5219;&#x4F1A;&#x8BA4;&#x4E3A;&#x8BE5;&#x865A;&#x62DF;&#x5730;&#x5740;&#x4E0D;&#x5408;&#x6CD5;&#xFF0C;&#x5728;&#x8BBF;&#x95EE;&#x65F6;&#x4F1A;&#x4EA7;&#x751F;&#x5F02;&#x5E38;&#x3002;</p>
<p>Sv39 &#x6A21;&#x5F0F;&#x540C;&#x6837;&#x662F;&#x57FA;&#x4E8E;&#x9875;&#x7684;&#xFF0C;&#x5728;&#x7269;&#x7406;&#x5185;&#x5B58;&#x90A3;&#x4E00;&#x8282;&#x66FE;&#x7ECF;&#x63D0;&#x5230;<strong>&#x7269;&#x7406;&#x9875;&#xFF08;Frame&#xFF09;</strong>&#x4E0E;<strong>&#x7269;&#x7406;&#x9875;&#x53F7;&#xFF08;PPN&#xFF0C;Physical Page Number&#xFF09;</strong>&#x3002;&#x5728;&#x8FD9;&#x91CC;&#x7269;&#x7406;&#x9875;&#x53F7;&#x4E3A; 44 &#x4F4D;&#xFF0C;&#x6BCF;&#x4E2A;&#x7269;&#x7406;&#x9875;&#x5927;&#x5C0F;&#x4E3A; 4KB&#x3002;&#x540C;&#x7406;&#xFF0C;&#x6211;&#x4EEC;&#x5BF9;&#x4E8E;&#x865A;&#x62DF;&#x5185;&#x5B58;&#x5B9A;&#x4E49;<strong>&#x865A;&#x62DF;&#x9875;&#xFF08;Page&#xFF09;</strong>&#x4EE5;&#x53CA;<strong>&#x865A;&#x62DF;&#x9875;&#x53F7;&#xFF08;VPN, Virtual Page Number)</strong> &#x3002;&#x5728;&#x8FD9;&#x91CC;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x4E3A; 27 &#x4F4D;&#xFF0C;&#x6BCF;&#x4E2A;&#x865A;&#x62DF;&#x9875;&#x5927;&#x5C0F;&#x4E5F;&#x4E3A; 4KB&#x3002;&#x7269;&#x7406;&#x5730;&#x5740;&#x548C;&#x865A;&#x62DF;&#x5730;&#x5740;&#x7684;&#x6700;&#x540E; 12 &#x4F4D;&#x90FD;&#x8868;&#x793A;&#x9875;&#x5185;&#x504F;&#x79FB;&#xFF0C;&#x5373;&#x8868;&#x793A;&#x8BE5;&#x5730;&#x5740;&#x5728;&#x6240;&#x5728;&#x7269;&#x7406;&#x9875;&#xFF08;&#x865A;&#x62DF;&#x9875;&#xFF09;&#x4E0A;&#x7684;&#x4EC0;&#x4E48;&#x4F4D;&#x7F6E;&#x3002;</p>
<p>&#x865A;&#x62DF;&#x5730;&#x5740;&#x5230;&#x7269;&#x7406;&#x5730;&#x5740;&#x7684;&#x6620;&#x5C04;&#x4EE5;&#x9875;&#x4E3A;&#x5355;&#x4F4D;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#x628A;&#x865A;&#x62DF;&#x5730;&#x5740;&#x6240;&#x5728;&#x7684;&#x865A;&#x62DF;&#x9875;&#x6620;&#x5C04;&#x5230;&#x4E00;&#x4E2A;&#x7269;&#x7406;&#x9875;&#xFF0C;&#x7136;&#x540E;&#x518D;&#x5728;&#x8FD9;&#x4E2A;&#x7269;&#x7406;&#x9875;&#x4E0A;&#x6839;&#x636E;&#x9875;&#x5185;&#x504F;&#x79FB;&#x627E;&#x5230;&#x7269;&#x7406;&#x5730;&#x5740;&#xFF0C;&#x4ECE;&#x800C;&#x5B8C;&#x6210;&#x6620;&#x5C04;&#x3002;&#x6211;&#x4EEC;&#x8981;&#x5B9E;&#x73B0;&#x865A;&#x62DF;&#x9875;&#x5230;&#x7269;&#x7406;&#x9875;&#x7684;&#x6620;&#x5C04;&#xFF0C;&#x7531;&#x4E8E;&#x865A;&#x62DF;&#x9875;&#x4E0E;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x4E00;&#x4E00;&#x5BF9;&#x5E94;&#xFF0C;&#x7269;&#x7406;&#x9875;&#x5E27;&#x4E0E;&#x7269;&#x7406;&#x9875;&#x53F7;&#x4E00;&#x4E00;&#x5BF9;&#x5E94;&#xFF0C;&#x672C;&#x8D28;&#x4E0A;&#x6211;&#x4EEC;&#x8981;&#x5B9E;&#x73B0;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x5230;&#x7269;&#x7406;&#x9875;&#x53F7;&#x7684;&#x6620;&#x5C04;&#xFF0C;&#x800C;&#x8FD9;&#x5C31;&#x662F;&#x9875;&#x8868;&#x6240;&#x505A;&#x7684;&#x4E8B;&#x60C5;&#x3002;</p>
<h3 id="&#x9875;&#x8868;&#x9879;">&#x9875;&#x8868;&#x9879;</h3>
<p><img src="../pics/sv39_pte.jpg" alt=""></p>
<p>&#x4E00;&#x4E2A;<strong>&#x9875;&#x8868;&#x9879;&#xFF08;PTE&#xFF0C;Page Table Entry&#xFF09;</strong>&#x662F;&#x7528;&#x6765;&#x63CF;&#x8FF0;&#x4E00;&#x4E2A;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x5982;&#x4F55;&#x6620;&#x5C04;&#x5230;&#x7269;&#x7406;&#x9875;&#x53F7;&#x7684;&#x3002;&#x5982;&#x679C;&#x4E00;&#x4E2A;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x901A;&#x8FC7;&#x67D0;&#x79CD;&#x624B;&#x6BB5;&#x627E;&#x5230;&#x4E86;&#x4E00;&#x4E2A;&#x9875;&#x8868;&#x9879;&#xFF0C;&#x5E76;&#x901A;&#x8FC7;&#x8BFB;&#x53D6;&#x4E0A;&#x9762;&#x7684;&#x7269;&#x7406;&#x9875;&#x53F7;&#x5B8C;&#x6210;&#x6620;&#x5C04;&#xFF0C;&#x6211;&#x4EEC;&#x79F0;&#x8FD9;&#x4E2A;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x901A;&#x8FC7;&#x8BE5;&#x9875;&#x8868;&#x9879;&#x5B8C;&#x6210;&#x6620;&#x5C04;&#x7684;&#x3002;</p>
<p>&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x770B;&#x5230; Sv39 &#x6A21;&#x5F0F;&#x91CC;&#x9762;&#x7684;&#x4E00;&#x4E2A;&#x9875;&#x8868;&#x9879;&#x5927;&#x5C0F;&#x4E3A; 64 &#x4F4D;&#xFF08;&#x5373; 8 &#x5B57;&#x8282;&#xFF09;&#x3002;&#x5176;&#x4E2D;&#x7B2C; 53-10 &#x5171; 44 &#x4F4D;&#x4E3A;&#x4E00;&#x4E2A;&#x7269;&#x7406;&#x9875;&#x53F7;&#xFF0C;&#x8868;&#x793A;&#x8FD9;&#x4E2A;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x6620;&#x5C04;&#x5230;&#x7684;&#x7269;&#x7406;&#x9875;&#x53F7;&#x3002;&#x540E;&#x9762;&#x7684;&#x7B2C; 9-0 &#x4F4D;&#x5219;&#x63CF;&#x8FF0;&#x9875;&#x7684;&#x76F8;&#x5173;&#x72B6;&#x6001;&#x4FE1;&#x606F;&#x3002;</p>
<ul>
<li><p><code>V</code> &#x8868;&#x793A;&#x8FD9;&#x4E2A;&#x9875;&#x8868;&#x9879;&#x662F;&#x5426;&#x5408;&#x6CD5;&#x3002;&#x5982;&#x679C;&#x4E3A; 0 &#x8868;&#x793A;&#x4E0D;&#x5408;&#x6CD5;&#xFF0C;&#x6B64;&#x65F6;&#x9875;&#x8868;&#x9879;&#x5176;&#x4ED6;&#x4F4D;&#x7684;&#x503C;&#x90FD;&#x4F1A;&#x88AB;&#x5FFD;&#x7565;&#x3002;</p>
</li>
<li><p><code>R,W,X</code> &#x5206;&#x522B;&#x8868;&#x793A;&#x662F;&#x5426;&#x53EF;&#x8BFB;&#xFF08;Readable&#xFF09;&#x3001;&#x53EF;&#x5199;&#xFF08;Writable&#xFF09;&#x548C;&#x53EF;&#x6267;&#x884C;&#xFF08;Executable&#xFF09;&#x3002;</p>
<ul>
<li><p>&#x4EE5; <code>W</code> &#x8FD9;&#x4E00;&#x4F4D;&#x4E3A;&#x4F8B;&#xFF0C;&#x5982;&#x679C;&#x4E3A;&#x96F6;&#x8868;&#x793A;&#x4E0D;&#x53EF;&#x5199;&#xFF0C;&#x90A3;&#x4E48;&#x5982;&#x679C;&#x4E00;&#x6761; <code>store</code> &#x7684;&#x6307;&#x4EE4;&#xFF0C;&#x5B83;&#x901A;&#x8FC7;&#x8FD9;&#x4E2A;&#x9875;&#x8868;&#x9879;&#x5B8C;&#x6210;&#x4E86;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x5230;&#x7269;&#x7406;&#x9875;&#x53F7;&#x7684;&#x6620;&#x5C04;&#xFF0C;&#x627E;&#x5230;&#x4E86;&#x7269;&#x7406;&#x5730;&#x5740;&#x3002;&#x4F46;&#x662F;&#x4ECD;&#x7136;&#x4F1A;&#x62A5;&#x51FA;&#x5F02;&#x5E38;&#xFF0C;&#x662F;&#x56E0;&#x4E3A;&#x8FD9;&#x4E2A;&#x9875;&#x8868;&#x9879;&#x89C4;&#x5B9A;&#x5982;&#x679C;&#x7269;&#x7406;&#x5730;&#x5740;&#x662F;&#x901A;&#x8FC7;&#x5B83;&#x6620;&#x5C04;&#x5F97;&#x5230;&#x7684;&#xFF0C;&#x6267;&#x884C;&#x7684;&#x884C;&#x4E3A;&#x548C;&#x9875;&#x8868;&#x63CF;&#x8FF0;&#x7684;&#x72B6;&#x6001;&#x5E76;&#x4E0D;&#x4E00;&#x81F4;&#x3002;</p>
</li>
<li><p>&#x540C;&#x65F6;&#xFF0C;&#x6839;&#x636E; <code>R,W,X</code> &#x53D6;&#x503C;&#x7684;&#x4E0D;&#x540C;&#xFF0C;&#x6211;&#x4EEC;&#x8FD8;&#x6709;&#x4E00;&#x4E9B;&#x7279;&#x522B;&#x8868;&#x793A;&#x548C;&#x7EA6;&#x5B9A;&#xFF1A;</p>
<p><img src="../pics/sv39_rwx.jpg" alt=""></p>
</li>
<li><p>&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#xFF0C;&#x5982;&#x679C; <code>R,W,X</code> &#x5747;&#x4E3A; 0&#xFF0C;&#x6587;&#x6863;&#x4E0A;&#x8BF4;&#x8FD9;&#x8868;&#x793A;&#x8FD9;&#x4E2A;&#x9875;&#x8868;&#x9879;&#x6307;&#x5411;&#x4E0B;&#x4E00;&#x7EA7;&#x9875;&#x8868;&#xFF0C;&#x6211;&#x4EEC;&#x5148;&#x6682;&#x65F6;&#x8BB0;&#x4F4F;&#x5C31;&#x597D;&#x3002;</p>
</li>
</ul>
</li>
<li><p><code>U</code> &#x4E3A; 1 &#x8868;&#x793A;&#x7528;&#x6237;&#x6001;&#x8FD0;&#x884C;&#x7684;&#x7A0B;&#x5E8F;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x8BE5;&#x9875;&#x8868;&#x9879;&#x5B8C;&#x6210;&#x5730;&#x5740;&#x6620;&#x5C04;&#x3002;&#x4E8B;&#x5B9E;&#x4E0A;&#x7528;&#x6237;&#x6001;&#x8FD0;&#x884C;&#x7684;&#x7A0B;&#x5E8F;&#x4E5F;&#x53EA;&#x80FD;&#x591F;&#x901A;&#x8FC7; <code>U</code> &#x4E3A; 1 &#x7684;&#x9875;&#x8868;&#x9879;&#x8FDB;&#x884C;&#x865A;&#x5B9E;&#x5730;&#x5740;&#x6620;&#x5C04;&#x3002;</p>
<ul>
<li>&#x7136;&#x800C;&#xFF0C;&#x6211;&#x4EEC;&#x6240;&#x5904;&#x5728;&#x7684; S &#x6001;&#x4E5F;&#x5E76;&#x4E0D;&#x662F;&#x7406;&#x6240;&#x5F53;&#x7136;&#x7684;&#x53EF;&#x4EE5;&#x8BBF;&#x95EE;&#x901A;&#x8FC7;&#x8FD9;&#x4E9B; <code>U</code> &#x4E3A; 1 &#x7684;&#x9875;&#x8868;&#x9879;&#x8FDB;&#x884C;&#x6620;&#x5C04;&#x7684;&#x7528;&#x6237;&#x6001;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x3002;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x5C06; S &#x6001;&#x7684;&#x72B6;&#x6001;&#x5BC4;&#x5B58;&#x5668; <code>sstatus</code> &#x4E0A;&#x7684; <code>SUM (permit Supervisor User Memory access)</code> &#x4F4D;&#x624B;&#x52A8;&#x8BBE;&#x7F6E;&#x4E3A; 1 &#x624D;&#x53EF;&#x4EE5;&#x505A;&#x5230;&#x8FD9;&#x4E00;&#x70B9;&#x3002;&#x5426;&#x5219; S &#x6001;&#x901A;&#x8FC7;&#x7684; <code>load/store</code> &#x7B49;&#x6307;&#x4EE4;&#x5728;&#x8BBF;&#x95EE;<code>U</code> &#x4E3A; 1 &#x7684;&#x9875;&#x8868;&#x9879;&#x6620;&#x5C04;&#x7684;&#x7528;&#x5408;&#x540C;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x65F6;&#xFF0C;CPU &#x4F1A;&#x62A5;&#x51FA;&#x5F02;&#x5E38;&#x3002;</li>
</ul>
</li>
<li><p><code>A</code> &#x8868;&#x793A; Accessed&#xFF0C;&#x5982;&#x679C;&#x4E3A; 1 &#x5219;&#x8868;&#x793A;&#x81EA;&#x4ECE;&#x4E0A;&#x6B21; <code>A</code> &#x88AB;&#x6E05;&#x96F6;&#x540E;&#xFF0C;&#x6709;&#x865A;&#x62DF;&#x5730;&#x5740;&#x901A;&#x8FC7;&#x8FD9;&#x4E2A;&#x9875;&#x8868;&#x9879;&#x8FDB;&#x884C;&#x8BFB;&#x5199;&#x3002;</p>
</li>
<li><p><code>D</code> &#x8868;&#x793A; Dirty&#xFF0C;&#x5982;&#x679C;&#x4E3A; 1 &#x8868;&#x793A;&#x81EA;&#x4ECE;&#x4E0A;&#x6B21; <code>D</code> &#x88AB;&#x6E05;&#x96F6;&#x540E;&#xFF0C;&#x6709;&#x865A;&#x62DF;&#x5730;&#x5740;&#x901A;&#x8FC7;&#x8FD9;&#x4E2A;&#x9875;&#x8868;&#x9879;&#x8FDB;&#x884C;&#x5199;&#x5165;&#x3002;</p>
</li>
<li><p><code>RSW</code> &#x4E24;&#x4F4D;&#x7559;&#x7ED9; S &#x6001;&#x7684;&#x7A0B;&#x5E8F;&#x6765;&#x8FDB;&#x884C;&#x62D3;&#x5C55;&#x529F;&#x80FD;&#x5B9E;&#x73B0;&#x3002;</p>
</li>
</ul>
<h3 id="&#x591A;&#x7EA7;&#x9875;&#x8868;">&#x591A;&#x7EA7;&#x9875;&#x8868;</h3>
<p>&#x4E00;&#x4E2A;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x8981;&#x901A;&#x8FC7;&#x67D0;&#x79CD;&#x624B;&#x6BB5;&#x627E;&#x5230;&#x9875;&#x8868;&#x9879;&#xFF0C;&#x90A3;&#x4E48;&#x8981;&#x600E;&#x4E48;&#x624D;&#x80FD;&#x627E;&#x5230;&#x5462;&#xFF1F;</p>
<p>&#x60F3;&#x4E00;&#x79CD;&#x6700;&#x4E3A;&#x7B80;&#x5355;&#x7C97;&#x66B4;&#x7684;&#x65B9;&#x6CD5;&#xFF0C;&#x5728;&#x7269;&#x7406;&#x5185;&#x5B58;&#x4E2D;&#x5F00;&#x4E00;&#x4E2A;&#x5927;&#x6570;&#x7EC4;&#x4F5C;&#x4E3A;&#x9875;&#x8868;&#xFF0C;&#x628A;&#x6240;&#x6709;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x5BF9;&#x5E94;&#x7684;&#x9875;&#x8868;&#x9879;&#x90FD;&#x5B58;&#x4E0B;&#x6765;&#x3002;&#x5728;&#x627E;&#x7684;&#x65F6;&#x5019;&#x6839;&#x636E;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x6765;&#x7D22;&#x5F15;&#x9875;&#x8868;&#x9879;&#x3002;&#x5373;&#xFF0C;&#x5047;&#x8BBE;&#x5927;&#x6570;&#x7EC4;&#x5F00;&#x5934;&#x7684;&#x7269;&#x7406;&#x5730;&#x5740;&#x4E3A; a&#xFF0C;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mtext><mi mathvariant="normal">V</mi><mi mathvariant="normal">P</mi><mi mathvariant="normal">N</mi></mtext></mrow><annotation encoding="application/x-tex">\text{VPN}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.68333em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord text textstyle uncramped"><span class="mord mathrm">VPN</span></span></span></span></span>&#xFF0C;&#x5219;&#x8BE5;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x5BF9;&#x5E94;&#x7684;&#x9875;&#x8868;&#x9879;&#x7684;&#x7269;&#x7406;&#x5730;&#x5740;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>a</mi><mo>+</mo><mtext><mi mathvariant="normal">V</mi><mi mathvariant="normal">P</mi><mi mathvariant="normal">N</mi></mtext><mo>&#xD7;</mo><mn>8</mn></mrow><annotation encoding="application/x-tex">a+\text{VPN}\times8</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.76666em;vertical-align:-0.08333em;"></span><span class="base textstyle uncramped"><span class="mord mathit">a</span><span class="mbin">+</span><span class="mord text textstyle uncramped"><span class="mord mathrm">VPN</span></span><span class="mbin">&#xD7;</span><span class="mord mathrm">8</span></span></span></span>&#xFF08;&#x6BCF;&#x4E2A;&#x9875;&#x8868;&#x9879; 8 &#x5B57;&#x8282;&#xFF09;&#x3002;</p>
<p>&#x4F46;&#x662F;&#x8FD9;&#x6837;&#x4F1A;&#x82B1;&#x6389;&#x6211;&#x4EEC;&#x5927;&#x91CF;&#x7684;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#x3002;&#x6211;&#x4EEC;&#x76EE;&#x524D;&#x53EA;&#x6709;&#x53EF;&#x601C;&#x7684; 128MB &#x5185;&#x5B58;&#xFF0C;&#x5373;&#x4F7F;&#x6211;&#x4EEC;&#x6709;&#x8DB3;&#x591F;&#x7684;&#x5185;&#x5B58;&#x4E5F;&#x4E0D;&#x5E94;&#x8BE5;&#x8FD9;&#x6837;&#x53BB;&#x6D6A;&#x8D39;&#x3002;&#x8FD9;&#x662F;&#x7531;&#x4E8E;&#x6709;&#x5F88;&#x591A;&#x865A;&#x62DF;&#x5730;&#x5740;&#x6211;&#x4EEC;&#x6839;&#x672C;&#x6CA1;&#x6709;&#x7528;&#x5230;&#xFF0C;&#x56E0;&#x6B64;&#x4ED6;&#x4EEC;&#x5BF9;&#x5E94;&#x7684;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x4E0D;&#x9700;&#x8981;&#x6620;&#x5C04;&#xFF0C;&#x6211;&#x4EEC;&#x6D6A;&#x8D39;&#x4E86;&#x5F88;&#x591A;&#x65E0;&#x7528;&#x7684;&#x5185;&#x5B58;&#x3002;</p>
<p>&#x4E8B;&#x5B9E;&#x4E0A;&#xFF0C;&#x5728; Sv39 &#x6A21;&#x5F0F;&#x4E2D;&#x6211;&#x4EEC;&#x91C7;&#x7528;&#x4E09;&#x7EA7;&#x9875;&#x8868;&#xFF0C;&#x5373;&#x5C06; 27 &#x4F4D;&#x7684;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x5206;&#x4E3A;&#x4E09;&#x4E2A;&#x7B49;&#x957F;&#x7684;&#x90E8;&#x5206;&#xFF0C;&#x7B2C; 26-18 &#x4F4D;&#x4E3A;&#x4E09;&#x7EA7;&#x7D22;&#x5F15; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mtext><mi mathvariant="normal">V</mi><mi mathvariant="normal">P</mi><mi mathvariant="normal">N</mi></mtext><mn>2</mn></msub></mrow><annotation encoding="application/x-tex">\text{VPN}_2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.83333em;vertical-align:-0.15em;"></span><span class="base textstyle uncramped"><span class="mord"><span class="mord text textstyle uncramped"><span class="mord mathrm">VPN</span></span><span class="msupsub"><span class="vlist"><span style="top:0.15em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord mathrm mtight">2</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span></span></span></span>&#xFF0C;&#x7B2C; 17-9 &#x4F4D;&#x4E3A;&#x4E8C;&#x7EA7;&#x7D22;&#x5F15; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mtext><mi mathvariant="normal">V</mi><mi mathvariant="normal">P</mi><mi mathvariant="normal">N</mi></mtext><mn>1</mn></msub></mrow><annotation encoding="application/x-tex">\text{VPN}_1</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.83333em;vertical-align:-0.15em;"></span><span class="base textstyle uncramped"><span class="mord"><span class="mord text textstyle uncramped"><span class="mord mathrm">VPN</span></span><span class="msupsub"><span class="vlist"><span style="top:0.15em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord mathrm mtight">1</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span></span></span></span>&#xFF0C;&#x7B2C; 8-0 &#x4F4D;&#x4E3A;&#x4E00;&#x7EA7;&#x7D22;&#x5F15; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mtext><mi mathvariant="normal">V</mi><mi mathvariant="normal">P</mi><mi mathvariant="normal">N</mi></mtext><mn>0</mn></msub></mrow><annotation encoding="application/x-tex">\text{VPN}_0</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.83333em;vertical-align:-0.15em;"></span><span class="base textstyle uncramped"><span class="mord"><span class="mord text textstyle uncramped"><span class="mord mathrm">VPN</span></span><span class="msupsub"><span class="vlist"><span style="top:0.15em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord mathrm mtight">0</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span></span></span></span>&#x3002;</p>
<p>&#x6211;&#x4EEC;&#x4E5F;&#x5C06;&#x9875;&#x8868;&#x5206;&#x4E3A;&#x4E09;&#x7EA7;&#x9875;&#x8868;&#xFF0C;&#x4E8C;&#x7EA7;&#x9875;&#x8868;&#xFF0C;&#x4E00;&#x7EA7;&#x9875;&#x8868;&#x3002;&#x6BCF;&#x4E2A;&#x9875;&#x8868;&#x90FD;&#x7528; 9 &#x4F4D;&#x7D22;&#x5F15;&#x7684;&#xFF0C;&#x56E0;&#x6B64;&#x6709; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><msup><mn>2</mn><mrow><mn>9</mn></mrow></msup><mo>=</mo><mn>5</mn><mn>1</mn><mn>2</mn></mrow><annotation encoding="application/x-tex">2^{9}=512</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.8141079999999999em;"></span><span class="strut bottom" style="height:0.8141079999999999em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord"><span class="mord mathrm">2</span><span class="msupsub"><span class="vlist"><span style="top:-0.363em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle uncramped mtight"><span class="mord scriptstyle uncramped mtight"><span class="mord mathrm mtight">9</span></span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mrel">=</span><span class="mord mathrm">5</span><span class="mord mathrm">1</span><span class="mord mathrm">2</span></span></span></span> &#x4E2A;&#x9875;&#x8868;&#x9879;&#xFF0C;&#x800C;&#x6BCF;&#x4E2A;&#x9875;&#x8868;&#x9879;&#x90FD;&#x662F; 8 &#x5B57;&#x8282;&#xFF0C;&#x56E0;&#x6B64;&#x6BCF;&#x4E2A;&#x9875;&#x8868;&#x5927;&#x5C0F;&#x90FD;&#x4E3A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>5</mn><mn>1</mn><mn>2</mn><mo>&#xD7;</mo><mn>8</mn><mo>=</mo><mn>4</mn><mtext><mi mathvariant="normal">K</mi><mi mathvariant="normal">B</mi></mtext></mrow><annotation encoding="application/x-tex">512\times 8=4\text{KB}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.76666em;vertical-align:-0.08333em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">5</span><span class="mord mathrm">1</span><span class="mord mathrm">2</span><span class="mbin">&#xD7;</span><span class="mord mathrm">8</span><span class="mrel">=</span><span class="mord mathrm">4</span><span class="mord text textstyle uncramped"><span class="mord mathrm">KB</span></span></span></span></span>&#x3002;&#x6B63;&#x597D;&#x662F;&#x4E00;&#x4E2A;&#x7269;&#x7406;&#x9875;&#x7684;&#x5927;&#x5C0F;&#x3002;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x628A;&#x4E00;&#x4E2A;&#x9875;&#x8868;&#x653E;&#x5230;&#x4E00;&#x4E2A;&#x7269;&#x7406;&#x9875;&#x4E2D;&#xFF0C;&#x5E76;&#x7528;&#x4E00;&#x4E2A;&#x7269;&#x7406;&#x9875;&#x53F7;&#x6765;&#x63CF;&#x8FF0;&#x5B83;&#x3002;&#x4E8B;&#x5B9E;&#x4E0A;&#xFF0C;&#x4E09;&#x7EA7;&#x9875;&#x8868;&#x7684;&#x6BCF;&#x4E2A;&#x9875;&#x8868;&#x9879;&#x4E2D;&#x7684;&#x7269;&#x7406;&#x9875;&#x53F7;&#x53EF;&#x63CF;&#x8FF0;&#x4E00;&#x4E2A;&#x4E8C;&#x7EA7;&#x9875;&#x8868;&#xFF1B;&#x4E8C;&#x7EA7;&#x9875;&#x8868;&#x7684;&#x6BCF;&#x4E2A;&#x9875;&#x8868;&#x9879;&#x4E2D;&#x7684;&#x7269;&#x7406;&#x9875;&#x53F7;&#x53EF;&#x63CF;&#x8FF0;&#x4E00;&#x4E2A;&#x4E00;&#x7EA7;&#x9875;&#x8868;&#xFF1B;&#x4E00;&#x7EA7;&#x9875;&#x8868;&#x4E2D;&#x7684;&#x9875;&#x8868;&#x9879;&#x5185;&#x5BB9;&#x5219;&#x548C;&#x6211;&#x4EEC;&#x521A;&#x624D;&#x63D0;&#x5230;&#x7684;&#x9875;&#x8868;&#x9879;&#x4E00;&#x6837;&#xFF0C;&#x5176;&#x5185;&#x5BB9;&#x5305;&#x542B;&#x7269;&#x7406;&#x9875;&#x53F7;&#xFF0C;&#x5373;&#x63CF;&#x8FF0;&#x4E00;&#x4E2A;&#x8981;&#x6620;&#x5C04;&#x5230;&#x7684;&#x7269;&#x7406;&#x9875;&#x3002;</p>
<p>&#x5177;&#x4F53;&#x6765;&#x8BF4;&#xFF0C;&#x5047;&#x8BBE;&#x6211;&#x4EEC;&#x6709;&#x865A;&#x62DF;&#x5730;&#x5740; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>(</mo><msub><mtext><mi mathvariant="normal">V</mi><mi mathvariant="normal">P</mi><mi mathvariant="normal">N</mi></mtext><mn>2</mn></msub><mo separator="true">,</mo><msub><mtext><mi mathvariant="normal">V</mi><mi mathvariant="normal">P</mi><mi mathvariant="normal">N</mi></mtext><mn>1</mn></msub><mo separator="true">,</mo><msub><mtext><mi mathvariant="normal">V</mi><mi mathvariant="normal">P</mi><mi mathvariant="normal">N</mi></mtext><mn>0</mn></msub><mo separator="true">,</mo><mtext><mi mathvariant="normal">o</mi><mi mathvariant="normal">f</mi><mi mathvariant="normal">f</mi><mi mathvariant="normal">s</mi><mi mathvariant="normal">e</mi><mi mathvariant="normal">t</mi></mtext><mo>)</mo></mrow><annotation encoding="application/x-tex">(\text{VPN}_2, \text{VPN}_1, \text{VPN}_0, \text{offset})</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mopen">(</span><span class="mord"><span class="mord text textstyle uncramped"><span class="mord mathrm">VPN</span></span><span class="msupsub"><span class="vlist"><span style="top:0.15em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord mathrm mtight">2</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mpunct">,</span><span class="mord"><span class="mord text textstyle uncramped"><span class="mord mathrm">VPN</span></span><span class="msupsub"><span class="vlist"><span style="top:0.15em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord mathrm mtight">1</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mpunct">,</span><span class="mord"><span class="mord text textstyle uncramped"><span class="mord mathrm">VPN</span></span><span class="msupsub"><span class="vlist"><span style="top:0.15em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord mathrm mtight">0</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mpunct">,</span><span class="mord text textstyle uncramped"><span class="mord mathrm">offset</span></span><span class="mclose">)</span></span></span></span>&#xFF1A;</p>
<ul>
<li>&#x6211;&#x4EEC;&#x9996;&#x5148;&#x4F1A;&#x8BB0;&#x5F55;&#x88C5;&#x8F7D;&#x300C;&#x5F53;&#x524D;&#x6240;&#x7528;&#x7684;&#x4E09;&#x7EA7;&#x9875;&#x8868;&#x7684;&#x7269;&#x7406;&#x9875;&#x300D;&#x7684;&#x9875;&#x53F7;&#x5230; <code>satp</code> &#x5BC4;&#x5B58;&#x5668;&#x4E2D;&#xFF1B;</li>
<li>&#x628A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mtext><mi mathvariant="normal">V</mi><mi mathvariant="normal">P</mi><mi mathvariant="normal">N</mi></mtext><mn>2</mn></msub></mrow><annotation encoding="application/x-tex">\text{VPN}_2</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.83333em;vertical-align:-0.15em;"></span><span class="base textstyle uncramped"><span class="mord"><span class="mord text textstyle uncramped"><span class="mord mathrm">VPN</span></span><span class="msupsub"><span class="vlist"><span style="top:0.15em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord mathrm mtight">2</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span></span></span></span> &#x4F5C;&#x4E3A;&#x504F;&#x79FB;&#x5728;&#x4E09;&#x7EA7;&#x9875;&#x8868;&#x7684;&#x7269;&#x7406;&#x9875;&#x4E2D;&#x627E;&#x5230;&#x7B2C;&#x4E8C;&#x7EA7;&#x9875;&#x8868;&#x7684;&#x7269;&#x7406;&#x9875;&#x53F7;&#xFF1B;</li>
<li>&#x628A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mtext><mi mathvariant="normal">V</mi><mi mathvariant="normal">P</mi><mi mathvariant="normal">N</mi></mtext><mn>1</mn></msub></mrow><annotation encoding="application/x-tex">\text{VPN}_1</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.83333em;vertical-align:-0.15em;"></span><span class="base textstyle uncramped"><span class="mord"><span class="mord text textstyle uncramped"><span class="mord mathrm">VPN</span></span><span class="msupsub"><span class="vlist"><span style="top:0.15em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord mathrm mtight">1</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span></span></span></span> &#x4F5C;&#x4E3A;&#x504F;&#x79FB;&#x5728;&#x4E8C;&#x7EA7;&#x9875;&#x8868;&#x7684;&#x7269;&#x7406;&#x9875;&#x4E2D;&#x627E;&#x5230;&#x7B2C;&#x4E00;&#x7EA7;&#x9875;&#x8868;&#x7684;&#x7269;&#x7406;&#x9875;&#x53F7;&#xFF1B;</li>
<li>&#x628A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><msub><mtext><mi mathvariant="normal">V</mi><mi mathvariant="normal">P</mi><mi mathvariant="normal">N</mi></mtext><mn>0</mn></msub></mrow><annotation encoding="application/x-tex">\text{VPN}_0</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.68333em;"></span><span class="strut bottom" style="height:0.83333em;vertical-align:-0.15em;"></span><span class="base textstyle uncramped"><span class="mord"><span class="mord text textstyle uncramped"><span class="mord mathrm">VPN</span></span><span class="msupsub"><span class="vlist"><span style="top:0.15em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle cramped mtight"><span class="mord mathrm mtight">0</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span></span></span></span> &#x4F5C;&#x4E3A;&#x504F;&#x79FB;&#x5728;&#x4E00;&#x7EA7;&#x9875;&#x8868;&#x7684;&#x7269;&#x7406;&#x9875;&#x4E2D;&#x627E;&#x5230;&#x8981;&#x8BBF;&#x95EE;&#x4F4D;&#x7F6E;&#x7684;&#x7269;&#x7406;&#x9875;&#x53F7;&#xFF1B;</li>
<li>&#x7269;&#x7406;&#x9875;&#x53F7;&#x5BF9;&#x5E94;&#x7684;&#x7269;&#x7406;&#x9875;&#x57FA;&#x5740;&#x52A0;&#x4E0A; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mtext><mi mathvariant="normal">o</mi><mi mathvariant="normal">f</mi><mi mathvariant="normal">f</mi><mi mathvariant="normal">s</mi><mi mathvariant="normal">e</mi><mi mathvariant="normal">t</mi></mtext></mrow><annotation encoding="application/x-tex">\text{offset}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.69444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mord text textstyle uncramped"><span class="mord mathrm">offset</span></span></span></span></span> &#x5C31;&#x662F;&#x865A;&#x62DF;&#x5730;&#x5740;&#x5BF9;&#x5E94;&#x7684;&#x7269;&#x7406;&#x5730;&#x5740;&#x3002;</li>
</ul>
<p>&#x4E0A;&#x8FF0;&#x6D41;&#x7A0B;&#x4E5F;&#x53EF;&#x4EE5;&#x7528;&#x4E0B;&#x56FE;&#x8868;&#xFF08;&#x6765;&#x6E90;&#x4E8E; MIT 6.828 &#x8BFE;&#x7A0B;&#xFF09;&#x793A;&#xFF1A;
<img src="../pics/sv39_pagetable.jpg" alt=""></p>
<p>&#x6211;&#x4EEC;&#x901A;&#x8FC7;&#x8FD9;&#x79CD;&#x590D;&#x6742;&#x7684;&#x624B;&#x6BB5;&#xFF0C;&#x7EC8;&#x4E8E;&#x4ECE;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x627E;&#x5230;&#x4E86;&#x4E00;&#x7EA7;&#x9875;&#x8868;&#x9879;&#xFF0C;&#x4ECE;&#x800C;&#x5F97;&#x51FA;&#x4E86;&#x7269;&#x7406;&#x9875;&#x53F7;&#x3002;&#x521A;&#x624D;&#x6211;&#x4EEC;&#x63D0;&#x5230;&#x82E5;&#x9875;&#x8868;&#x9879;&#x6EE1;&#x8DB3; <code>R,W,X</code> &#x90FD;&#x4E3A; 0&#xFF0C;&#x8868;&#x660E;&#x8FD9;&#x4E2A;&#x9875;&#x8868;&#x9879;&#x6307;&#x5411;&#x4E0B;&#x4E00;&#x7EA7;&#x9875;&#x8868;&#x3002;&#x5728;&#x8FD9;&#x91CC;&#x4E09;&#x7EA7;&#x548C;&#x4E8C;&#x7EA7;&#x9875;&#x8868;&#x9879;&#x7684; <code>R,W,X</code> &#x4E3A; 0 &#x5E94;&#x8BE5;&#x6210;&#x7ACB;&#xFF0C;&#x56E0;&#x4E3A;&#x5B83;&#x4EEC;&#x6307;&#x5411;&#x4E86;&#x4E0B;&#x4E00;&#x7EA7;&#x9875;&#x8868;&#x3002;</p>
<p>&#x7136;&#x800C;&#x4E09;&#x7EA7;&#x548C;&#x4E8C;&#x7EA7;&#x9875;&#x8868;&#x9879;&#x4E0D;&#x4E00;&#x5B9A;&#x8981;&#x6307;&#x5411;&#x4E0B;&#x4E00;&#x7EA7;&#x9875;&#x8868;&#x3002;&#x6211;&#x4EEC;&#x77E5;&#x9053;&#x6BCF;&#x4E2A;&#x4E00;&#x7EA7;&#x9875;&#x8868;&#x9879;&#x63A7;&#x5236;&#x4E00;&#x4E2A;&#x865A;&#x62DF;&#x9875;&#x53F7;&#xFF0C;&#x5373;&#x63A7;&#x5236; 4KB &#x865A;&#x62DF;&#x5185;&#x5B58;&#xFF1B;&#x6BCF;&#x4E2A;&#x4E8C;&#x7EA7;&#x9875;&#x8868;&#x9879;&#x5219;&#x63A7;&#x5236; 9 &#x4F4D;&#x865A;&#x62DF;&#x9875;&#x53F7;&#xFF0C;&#x603B;&#x8BA1;&#x63A7;&#x5236; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>4</mn><mtext><mi mathvariant="normal">K</mi><mi mathvariant="normal">B</mi></mtext><mo>&#xD7;</mo><msup><mn>2</mn><mn>9</mn></msup><mo>=</mo><mn>2</mn><mtext><mi mathvariant="normal">M</mi><mi mathvariant="normal">B</mi></mtext></mrow><annotation encoding="application/x-tex">4\text{KB}\times 2^9=2\text{MB}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.8141079999999999em;"></span><span class="strut bottom" style="height:0.897438em;vertical-align:-0.08333em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">4</span><span class="mord text textstyle uncramped"><span class="mord mathrm">KB</span></span><span class="mbin">&#xD7;</span><span class="mord"><span class="mord mathrm">2</span><span class="msupsub"><span class="vlist"><span style="top:-0.363em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle uncramped mtight"><span class="mord mathrm mtight">9</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mrel">=</span><span class="mord mathrm">2</span><span class="mord text textstyle uncramped"><span class="mord mathrm">MB</span></span></span></span></span> &#x865A;&#x62DF;&#x5185;&#x5B58;&#xFF1B;&#x6BCF;&#x4E2A;&#x4E09;&#x7EA7;&#x9875;&#x8868;&#x9879;&#x63A7;&#x5236; 18 &#x4F4D;&#x865A;&#x62DF;&#x9875;&#x53F7;&#xFF0C;&#x603B;&#x8BA1;&#x63A7;&#x5236; <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mn>2</mn><mtext><mi mathvariant="normal">M</mi><mi mathvariant="normal">B</mi></mtext><mo>&#xD7;</mo><msup><mn>2</mn><mn>9</mn></msup><mo>=</mo><mn>1</mn><mtext><mi mathvariant="normal">G</mi><mi mathvariant="normal">B</mi></mtext></mrow><annotation encoding="application/x-tex">2\text{MB}\times 2^9=1\text{GB}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.8141079999999999em;"></span><span class="strut bottom" style="height:0.897438em;vertical-align:-0.08333em;"></span><span class="base textstyle uncramped"><span class="mord mathrm">2</span><span class="mord text textstyle uncramped"><span class="mord mathrm">MB</span></span><span class="mbin">&#xD7;</span><span class="mord"><span class="mord mathrm">2</span><span class="msupsub"><span class="vlist"><span style="top:-0.363em;margin-right:0.05em;"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span><span class="reset-textstyle scriptstyle uncramped mtight"><span class="mord mathrm mtight">9</span></span></span><span class="baseline-fix"><span class="fontsize-ensurer reset-size5 size5"><span style="font-size:0em;">&#x200B;</span></span>&#x200B;</span></span></span></span><span class="mrel">=</span><span class="mord mathrm">1</span><span class="mord text textstyle uncramped"><span class="mord mathrm">GB</span></span></span></span></span> &#x865A;&#x62DF;&#x5185;&#x5B58;&#x3002;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5C06;&#x4E8C;&#x7EA7;&#x9875;&#x8868;&#x9879;&#x7684; <code>R,W,X</code> &#x8BBE;&#x7F6E;&#x4E3A;&#x4E0D;&#x662F;&#x5168; 0 &#x7684;&#xFF0C;&#x90A3;&#x4E48;&#x5B83;&#x5C06;&#x4E0E;&#x4E00;&#x7EA7;&#x9875;&#x8868;&#x9879;&#x7C7B;&#x4F3C;&#xFF0C;&#x53EA;&#x4E0D;&#x8FC7;&#x53EF;&#x4EE5;&#x6620;&#x5C04;&#x4E00;&#x4E2A; 2MB &#x7684;<strong>&#x5927;&#x9875;&#xFF08;Huge Page&#xFF09;</strong>&#x3002;&#x540C;&#x7406;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x5C06;&#x4E09;&#x7EA7;&#x9875;&#x8868;&#x9879;&#x770B;&#x4F5C;&#x4E00;&#x4E2A;&#x53F6;&#x5B50;&#xFF0C;&#x6765;&#x6620;&#x5C04;&#x4E00;&#x4E2A; 1GB &#x7684;&#x5927;&#x9875;&#x3002;&#x8FD9;&#x6837;&#x5728; RISC-V &#x4E2D;&#xFF0C;&#x53EF;&#x4EE5;&#x5F88;&#x65B9;&#x4FBF;&#x5730;&#x5EFA;&#x7ACB;&#x8D77;&#x5927;&#x9875;&#x673A;&#x5236;&#x3002;</p>
<h3 id="&#x9875;&#x8868;&#x57FA;&#x5740;">&#x9875;&#x8868;&#x57FA;&#x5740;</h3>
<p>&#x9875;&#x8868;&#x7684;&#x57FA;&#x5740;&#xFF08;&#x8D77;&#x59CB;&#x5730;&#x5740;&#xFF09;&#x4E00;&#x822C;&#x4F1A;&#x4FDD;&#x5B58;&#x5728;&#x4E00;&#x4E2A;&#x7279;&#x6B8A;&#x7684;&#x5BC4;&#x5B58;&#x5668;&#x4E2D;&#x3002;&#x5728; RISC-V &#x4E2D;&#xFF0C;&#x8FD9;&#x4E2A;&#x7279;&#x6B8A;&#x7684;&#x5BC4;&#x5B58;&#x5668;&#x5C31;&#x662F;&#x9875;&#x8868;&#x5BC4;&#x5B58;&#x5668; satp&#x3002;</p>
<p><img src="../pics/sv39_satp.jpg" alt=""></p>
<p>&#x6211;&#x4EEC;&#x4F7F;&#x7528;&#x5BC4;&#x5B58;&#x5668; <code>satp</code> &#x6765;&#x63A7;&#x5236; CPU &#x8FDB;&#x884C;&#x9875;&#x8868;&#x6620;&#x5C04;&#x3002;</p>
<ul>
<li><code>MODE</code> &#x63A7;&#x5236; CPU &#x4F7F;&#x7528;&#x54EA;&#x79CD;&#x9875;&#x8868;&#x5B9E;&#x73B0;&#xFF0C;&#x6211;&#x4EEC;&#x53EA;&#x9700;&#x5C06; <code>MODE</code> &#x8BBE;&#x7F6E;&#x4E3A; 8 &#x5373;&#x8868;&#x793A; CPU &#x4F7F;&#x7528; Sv39 &#x3002;</li>
<li><code>ASID</code> &#x8868;&#x793A;&#x5730;&#x5740;&#x7A7A;&#x95F4;&#x6807;&#x8BC6;&#x7B26;&#xFF0C;&#x8FD9;&#x91CC;&#x8FD8;&#x6CA1;&#x6709;&#x6D89;&#x53CA;&#x5230;&#x8FDB;&#x7A0B;&#x7684;&#x6982;&#x5FF5;&#xFF0C;&#x6211;&#x4EEC;&#x4E0D;&#x9700;&#x8981;&#x7BA1;&#x8FD9;&#x4E2A;&#x5730;&#x65B9;&#x3002;</li>
<li><code>PPN</code> &#x5B58;&#x7684;&#x662F;&#x4E09;&#x7EA7;&#x9875;&#x8868;&#x6240;&#x5728;&#x7684;&#x7269;&#x7406;&#x9875;&#x53F7;&#x3002;&#x8FD9;&#x6837;&#xFF0C;&#x7ED9;&#x5B9A;&#x4E00;&#x4E2A;&#x865A;&#x62DF;&#x9875;&#x53F7;&#xFF0C;CPU &#x5C31;&#x53EF;&#x4EE5;&#x4ECE;&#x4E09;&#x7EA7;&#x9875;&#x8868;&#x5F00;&#x59CB;&#x4E00;&#x6B65;&#x6B65;&#x7684;&#x5C06;&#x5176;&#x6620;&#x5C04;&#x5230;&#x4E00;&#x4E2A;&#x7269;&#x7406;&#x9875;&#x53F7;&#x3002;</li>
</ul>
<p>&#x4E8E;&#x662F;&#xFF0C;OS &#x53EF;&#x4EE5;&#x5728;&#x5185;&#x5B58;&#x4E2D;&#x4E3A;&#x4E0D;&#x540C;&#x7684;&#x5E94;&#x7528;&#x5206;&#x522B;&#x5EFA;&#x7ACB;&#x4E0D;&#x540C;&#x865A;&#x5B9E;&#x6620;&#x5C04;&#x7684;&#x9875;&#x8868;&#xFF0C;&#x5E76;&#x901A;&#x8FC7;&#x4FEE;&#x6539;&#x5BC4;&#x5B58;&#x5668; <code>satp</code> &#x7684;&#x503C;&#x6307;&#x5411;&#x4E0D;&#x540C;&#x7684;&#x9875;&#x8868;&#xFF0C;&#x4ECE;&#x800C;&#x53EF;&#x4EE5;&#x4FEE;&#x6539; CPU &#x865A;&#x5B9E;&#x5730;&#x5740;&#x6620;&#x5C04;&#x5173;&#x7CFB;&#x53CA;&#x5185;&#x5B58;&#x4FDD;&#x62A4;&#x7684;&#x884C;&#x4E3A;&#x3002;</p>
<h3 id="&#x5FEB;&#x8868;&#xFF08;tlb&#xFF09;">&#x5FEB;&#x8868;&#xFF08;TLB&#xFF09;</h3>
<p>&#x6211;&#x4EEC;&#x77E5;&#x9053;&#xFF0C;&#x7269;&#x7406;&#x5185;&#x5B58;&#x7684;&#x8BBF;&#x95EE;&#x901F;&#x5EA6;&#x8981;&#x6BD4; CPU &#x7684;&#x8FD0;&#x884C;&#x901F;&#x5EA6;&#x6162;&#x5F88;&#x591A;&#x3002;&#x5982;&#x679C;&#x6211;&#x4EEC;&#x6309;&#x7167;&#x9875;&#x8868;&#x673A;&#x5236;&#x5FAA;&#x89C4;&#x8E48;&#x77E9;&#x7684;&#x4E00;&#x6B65;&#x6B65;&#x8D70;&#xFF0C;&#x5C06;&#x4E00;&#x4E2A;&#x865A;&#x62DF;&#x5730;&#x5740;&#x8F6C;&#x5316;&#x4E3A;&#x7269;&#x7406;&#x5730;&#x5740;&#x9700;&#x8981;&#x8BBF;&#x95EE; 3 &#x6B21;&#x7269;&#x7406;&#x5185;&#x5B58;&#xFF0C;&#x5F97;&#x5230;&#x7269;&#x7406;&#x5730;&#x5740;&#x540E;&#x8FD8;&#x9700;&#x8981;&#x518D;&#x8BBF;&#x95EE;&#x4E00;&#x6B21;&#x7269;&#x7406;&#x5185;&#x5B58;&#xFF0C;&#x624D;&#x80FD;&#x5B8C;&#x6210;&#x8BBF;&#x5B58;&#x3002;&#x8FD9;&#x65E0;&#x7591;&#x5F88;&#x5927;&#x7A0B;&#x5EA6;&#x4E0A;&#x964D;&#x4F4E;&#x4E86;&#x6548;&#x7387;&#x3002;</p>
<p>&#x4E8B;&#x5B9E;&#x4E0A;&#xFF0C;&#x5B9E;&#x8DF5;&#x8868;&#x660E;&#x865A;&#x62DF;&#x5730;&#x5740;&#x7684;&#x8BBF;&#x95EE;&#x5177;&#x6709;&#x65F6;&#x95F4;&#x5C40;&#x90E8;&#x6027;&#x548C;&#x7A7A;&#x95F4;&#x5C40;&#x90E8;&#x6027;&#x3002;&#x56E0;&#x6B64;&#xFF0C;&#x5728; CPU &#x5185;&#x90E8;&#xFF0C;&#x6211;&#x4EEC;&#x4F7F;&#x7528;<strong>&#x5FEB;&#x8868;&#xFF08;TLB, Translation Lookaside Buffer&#xFF09;</strong>&#x6765;&#x4F5C;&#x4E3A;&#x865A;&#x62DF;&#x9875;&#x53F7;&#x5230;&#x7269;&#x7406;&#x9875;&#x53F7;&#x7684;&#x6620;&#x5C04;&#x7684;&#x7F13;&#x5B58;&#x3002;&#x8FD9;&#x90E8;&#x5206;&#x77E5;&#x8BC6;&#x5728;&#x8BA1;&#x7B97;&#x673A;&#x7EC4;&#x6210;&#x539F;&#x7406;&#x8BFE;&#x7A0B;&#x4E2D;&#x6709;&#x6240;&#x4F53;&#x73B0;&#xFF0C;&#x5F53;&#x6211;&#x4EEC;&#x8981;&#x505A;&#x4E00;&#x4E2A;&#x6620;&#x5C04;&#x65F6;&#xFF0C;&#x4F1A;&#x6709;&#x5F88;&#x5927;&#x53EF;&#x80FD;&#x8FD9;&#x4E2A;&#x6620;&#x5C04;&#x5728;&#x8FD1;&#x671F;&#x88AB;&#x5B8C;&#x6210;&#x8FC7;&#xFF0C;&#x6240;&#x4EE5;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5148;&#x5230; TLB &#x91CC;&#x9762;&#x53BB;&#x67E5;&#x4E00;&#x4E0B;&#xFF0C;&#x5982;&#x679C;&#x6709;&#x7684;&#x8BDD;&#x6211;&#x4EEC;&#x5C31;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x5B8C;&#x6210;&#x6620;&#x5C04;&#xFF0C;&#x800C;&#x4E0D;&#x7528;&#x8BBF;&#x95EE;&#x90A3;&#x4E48;&#x591A;&#x6B21;&#x5185;&#x5B58;&#x4E86;&#x3002;</p>
<p>&#x4F46;&#x5982;&#x679C;&#x4FEE;&#x6539;&#x4E86; <code>satp</code> &#x5BC4;&#x5B58;&#x5668;&#xFF0C;&#x8BF4;&#x660E; OS &#x5207;&#x6362;&#x5230;&#x4E86;&#x4E00;&#x4E2A;&#x4E0E;&#x5148;&#x524D;&#x6620;&#x5C04;&#x65B9;&#x5F0F;&#x5B8C;&#x5168;&#x4E0D;&#x540C;&#x7684;&#x9875;&#x8868;&#x3002;&#x6B64;&#x65F6;&#x5FEB;&#x8868;&#x91CC;&#x9762;&#x5B58;&#x50A8;&#x7684;&#x6620;&#x5C04;&#x5DF2;&#x7ECF;&#x5931;&#x6548;&#x4E86;&#xFF0C;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#x4E0B; OS &#x8981;&#x5728;&#x4FEE;&#x6539; <code>satp</code> &#x7684;&#x6307;&#x4EE4;&#x540E;&#x9762;&#x9A6C;&#x4E0A;&#x4F7F;&#x7528; <code>sfence.vma</code> &#x6307;&#x4EE4;&#x5237;&#x65B0;&#x6574;&#x4E2A; TLB&#x3002;</p>
<p>&#x540C;&#x6837;&#xFF0C;&#x6211;&#x4EEC;&#x624B;&#x52A8;&#x4FEE;&#x6539;&#x4E00;&#x4E2A;&#x9875;&#x8868;&#x9879;&#x4E4B;&#x540E;&#xFF0C;&#x4E5F;&#x4FEE;&#x6539;&#x4E86;&#x6620;&#x5C04;&#xFF0C;&#x4F46; TLB &#x5E76;&#x4E0D;&#x4F1A;&#x81EA;&#x52A8;&#x5237;&#x65B0;&#xFF0C;&#x6211;&#x4EEC;&#x4E5F;&#x9700;&#x8981;&#x4F7F;&#x7528; <code>sfence.vma</code> &#x6307;&#x4EE4;&#x5237;&#x65B0; TLB&#x3002;&#x5982;&#x679C;&#x4E0D;&#x52A0;&#x53C2;&#x6570;&#x7684;&#xFF0C;<code>sfence.vma</code> &#x4F1A;&#x5237;&#x65B0;&#x6574;&#x4E2A; TLB&#x3002;&#x4F60;&#x53EF;&#x4EE5;&#x5728;&#x540E;&#x9762;&#x52A0;&#x4E0A;&#x4E00;&#x4E2A;&#x865A;&#x62DF;&#x5730;&#x5740;&#xFF0C;&#x8FD9;&#x6837; <code>sfence.vma</code> &#x53EA;&#x4F1A;&#x5237;&#x65B0;&#x8FD9;&#x4E2A;&#x865A;&#x62DF;&#x5730;&#x5740;&#x7684;&#x6620;&#x5C04;&#x3002;</p>
<p><div id="page-footer" class="localized-footer"><hr><p><link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css"></p>
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
<div id="gitalk-container"></div>
<script>
    var gitalk = new Gitalk({
        clientID: "5084c46751a4b2f7cd4d",
        clientSecret: "3904f62d33aef24f19480fedc836a48b31d532e9",
        repo: "rCore-Tutorial-deploy",
        owner: "rcore-os",
        admin: [
            "chyyuu",
            "wangrunji0408",
            "xy-plus",
            "wyfcyx",
            "LyricZhao",
            "Tuyixiang"
        ],
        id: location.pathname.replace('/rCore-Tutorial-deploy', '').replace('.html', ''),
        distractionFreeMode: false
    });
    gitalk.render("gitalk-container");
</script></div></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="intro.html" class="navigation navigation-prev " aria-label="Previous page: 摘要">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="part-2.html" class="navigation navigation-next " aria-label="Next page: 修改内核">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"从虚拟地址到物理地址","level":"3.4.2","depth":2,"next":{"title":"修改内核","level":"3.4.3","depth":2,"path":"docs/lab-3/guide/part-2.md","ref":"docs/lab-3/guide/part-2.md","articles":[]},"previous":{"title":"摘要","level":"3.4.1","depth":2,"path":"docs/lab-3/guide/intro.md","ref":"docs/lab-3/guide/intro.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["hide-element","chapter-fold","katex","alerts","emphasize","mermaid-gb3","codeblock-label","code","search-pro","click-reveal","expandable-chapters-interactive","localized-footer"],"pluginsConfig":{"chapter-fold":{},"emphasize":{},"codeblock-label":{},"search-pro":{},"search":{},"localized-footer":{"filename":"gitalk.html","hline":"true"},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"hide-element":{},"katex":{},"fontsettings":{"theme":"white","family":"sans","size":1},"click-reveal":{},"highlight":{},"mermaid-gb3":{},"expandable-chapters-interactive":{},"alerts":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"docs/lab-3/guide/part-1.md","mtime":"2020-10-01T11:39:40.511Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-10-01T11:40:38.595Z"},"basePath":"../../..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../../../gitbook/gitbook.js"></script>
    <script src="../../../gitbook/theme.js"></script>
    
        
        <script src="../../../gitbook/gitbook-plugin-hide-element/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-alerts/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-click-reveal/click_reveal.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../../../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

